package com.amkai.aes.aesws;

import javax.servlet.http.HttpSession;

import com.amkai.aes.webservice.mobile.MobileJobManager;
import com.amkai.mobile.common.job.MobileJob;
import com.amkai.mobile.common.job.MobileJobResult;
import com.amkai.mobile.common.job.util.ByteSerializer;


public class MobileJobExecutor {
private static final String GUESTED_USER_NAME = "Login";
	
	public static String executeJob( HttpSession session, String job) throws Throwable {
		MobileJobResult jobResult = null;
		MobileJob mobileJob = (MobileJob) ByteSerializer.deserializeObject(job);
		jobResult = MobileJobManager.processJob(mobileJob);		
		return ByteSerializer.serializeObject(jobResult);
	}
	
	
	

}
